// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_FA_USED_HISTORY
// * CreateDate    : 2012/3/12 17:00:34
// * Creater       : CodeSmith
// * LastChangeDate: 2012/3/12 17:00:34
// * LastChanger   : 2012/3/12 17:00:34
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class FaUsedHistoryTable : TableInfo
    {
		public const string C_TableName = "FA_USED_HISTORY";
		
		public const string C_HISTORY_ID = "HISTORY_ID";
		public const string C_ASSET_ID = "ASSET_ID";
		public const string C_APPLICATION_ID = "APPLICATION_ID";
		public const string C_USED_TYPE = "USED_TYPE";
		public const string C_DEPARTMENT_ID = "DEPARTMENT_ID";
		public const string C_PERSON_ID = "PERSON_ID";
		public const string C_FROM_DATE = "FROM_DATE";
		public const string C_END_DATE = "END_DATE";
		public const string C_REMARK = "REMARK";
		
		public FaUsedHistoryTable()
        {
            _tableName = "FA_USED_HISTORY";
        }
		
		protected static FaUsedHistoryTable _current;
        public static FaUsedHistoryTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new FaUsedHistoryTable();

            _current.Add(C_HISTORY_ID, new ColumnInfo(C_HISTORY_ID,"HistoryId", true, typeof(string)));
            _current.Add(C_ASSET_ID, new ColumnInfo(C_ASSET_ID,"AssetId", false, typeof(string)));
            _current.Add(C_APPLICATION_ID, new ColumnInfo(C_APPLICATION_ID,"ApplicationId", false, typeof(string)));
            _current.Add(C_USED_TYPE, new ColumnInfo(C_USED_TYPE,"UsedType", false, typeof(string)));
            _current.Add(C_DEPARTMENT_ID, new ColumnInfo(C_DEPARTMENT_ID,"DepartmentId", false, typeof(string)));
            _current.Add(C_PERSON_ID, new ColumnInfo(C_PERSON_ID,"PersonId", false, typeof(string)));
            _current.Add(C_FROM_DATE, new ColumnInfo(C_FROM_DATE,"FromDate", false, typeof(DateTime)));
            _current.Add(C_END_DATE, new ColumnInfo(C_END_DATE,"EndDate", false, typeof(DateTime)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK,"Remark", false, typeof(string)));
			
		}
		
		public ColumnInfo HISTORY_ID
        {
            get { return this[C_HISTORY_ID]; }
        }
		
		public ColumnInfo ASSET_ID
        {
            get { return this[C_ASSET_ID]; }
        }
		
		public ColumnInfo APPLICATION_ID
        {
            get { return this[C_APPLICATION_ID]; }
        }
		
		public ColumnInfo USED_TYPE
        {
            get { return this[C_USED_TYPE]; }
        }
		
		public ColumnInfo DEPARTMENT_ID
        {
            get { return this[C_DEPARTMENT_ID]; }
        }
		
		public ColumnInfo PERSON_ID
        {
            get { return this[C_PERSON_ID]; }
        }
		
		public ColumnInfo FROM_DATE
        {
            get { return this[C_FROM_DATE]; }
        }
		
		public ColumnInfo END_DATE
        {
            get { return this[C_END_DATE]; }
        }
		
		public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }
		
		
		
	}
}

